[q] Pin Playwright to version 1.56.1 and add dependency checker validation - #4100
Closed
github-actions[bot] wants to merge 2 commits into
Closed
[q] Pin Playwright to version 1.56.1 and add dependency checker validation#4100github-actions[bot] wants to merge 2 commits into
github-actions[bot] wants to merge 2 commits into
Conversation
- Add DefaultPlaywrightVersion constant set to 1.56.1 - Update mcp-config.go to use pinned version instead of 'latest' - Update mcp_renderer.go to use pinned version - Add validatePlaywrightVersion() function to check version consistency - Integrate Playwright version validation into runtime validation flow - Provide warnings when using 'latest' or mismatched versions Addresses issue #4099
pelikhan
approved these changes
Nov 15, 2025
| playwrightPackage := "@playwright/mcp@latest" | ||
| // Default to the pinned version from constants | ||
| playwrightPackage := "@playwright/mcp@" + constants.DefaultPlaywrightVersion | ||
| if includeCopilotFields && args.ImageVersion != "" && args.ImageVersion != "latest" { |
Collaborator
There was a problem hiding this comment.
@copilot review check, allow user to pick latest
Contributor
pelikhan
approved these changes
Nov 15, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Q Workflow Optimization Report
Context
This PR addresses issue #4099 where Playwright MCP server was failing to start. The request was to:
Changes Made
1. Added Playwright Version Constant (
pkg/constants/constants.go)DefaultPlaywrightVersion = "1.56.1"constant2. Updated MCP Configuration Files
Modified files to use the pinned version instead of hardcoded "latest":
pkg/workflow/mcp-config.goplaywrightPackage := "@playwright/mcp@latest"playwrightPackage := "@playwright/mcp@" + constants.DefaultPlaywrightVersionpkg/workflow/mcp_renderer.goyaml.WriteString(" \"@playwright/mcp@latest\",\n")yaml.WriteString(fmt.Sprintf(" \"@playwright/mcp@%s\",\n", constants.DefaultPlaywrightVersion))3. Added Playwright Version Validation (
pkg/workflow/npm_validation.go)Created new
validatePlaywrightVersion()function that:Example output:
4. Integrated into Runtime Validation (
pkg/workflow/runtime_validation.go)Expected Improvements
Consistency
Version Management
Debugging
Validation
All unit tests pass:
Migration Path
For existing workflows using
@playwright/mcp@latest:@playwright/mcp@1.56.1for consistencyversionfield if neededSecurity Considerations
Future Enhancements
Potential follow-ups:
Related Issue: #4099
Testing: Unit tests passing, manual validation completed